package com.ll.mybatis.dao;

import com.ll.mybatis.entity.Department;
import org.apache.ibatis.annotations.Param;

/**
 * @author 刘龙
 * @version 1.0
 */
public interface DepartmentMapper {

    /**
     *根据id查询部门
     * @param departmentId
     * @return
     */
    public Department getDeptById(Integer departmentId);

    /**
     * 查询部门的时候将部门对应的所有员工信息,查询出来
     * private List<Employee> employeeList;
     * @param departmentId
     * @return
     */
    public Department getDeptByIdPlus(@Param("departmentId") Integer departmentId);

    /**
     * 查询部门的时候将部门对应的所有员工信息,查询出来,采用分步查询
     * @param departmentId
     * @return
     */
    public Department getDeptByIdStep(@Param("departmentId") Integer departmentId);
}
